package com.study.创造型模式.工厂模式.工厂方法模式.消费者;

import java.util.Scanner;

//相当于一个客户端，发出订购
public class PizzaStore {

    public static void main(String[] args) {
        System.out.println("请输入地区风味");
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        if (s.equals("bj")){
            new BJOrderPizza();
        }else if (s.equals("ld")){
            new LDOrderPizza();
        }else {
            System.out.println("订购失败");
        }
    }
}
